package org.xtb.fun3;

import java.util.ArrayList;

public class Output implements Observer {
    private ArrayList<String> kwicList;

    String output;

    public Output(ArrayList<String> kwicList) {
        this.kwicList = kwicList;
    }

    @Override
    public void toDo(){
        StringBuilder result = new StringBuilder();
        for (String s : kwicList) {
            result.append(s).append("\n");
        }
        output = result.toString();
    }

}
